package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.SysSetupRuntime;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class SysSetupRuntimeProxy extends AbstractProxyEntity<SysSetupRuntimeProxy, SysSetupRuntime> {

    private static final Class<SysSetupRuntime> entityClass = SysSetupRuntime.class;

    public static final SysSetupRuntimeProxy TABLE = createTable().createEmpty();

    public static SysSetupRuntimeProxy createTable() {
        return new SysSetupRuntimeProxy();
    }

    public SysSetupRuntimeProxy() {
    }

    /**
     * {@link SysSetupRuntime#getSetupId}
     */
    public SQLStringTypeColumn<SysSetupRuntimeProxy> setupId() {
        return getStringTypeColumn("setupId");
    }

    /**
     * {@link SysSetupRuntime#getRuntimeCode}
     */
    public SQLStringTypeColumn<SysSetupRuntimeProxy> runtimeCode() {
        return getStringTypeColumn("runtimeCode");
    }

    @Override
    public Class<SysSetupRuntime> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public SysSetupRuntimeProxyFetcher FETCHER = new SysSetupRuntimeProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class SysSetupRuntimeProxyFetcher extends AbstractFetcher<SysSetupRuntimeProxy, SysSetupRuntime, SysSetupRuntimeProxyFetcher> {

        public SysSetupRuntimeProxyFetcher(SysSetupRuntimeProxy proxy, SysSetupRuntimeProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link SysSetupRuntime#getSetupId}
         */
        public SysSetupRuntimeProxyFetcher setupId() {
            return add(getProxy().setupId());
        }

        /**
         * {@link SysSetupRuntime#getRuntimeCode}
         */
        public SysSetupRuntimeProxyFetcher runtimeCode() {
            return add(getProxy().runtimeCode());
        }

        @Override
        protected SysSetupRuntimeProxyFetcher createFetcher(SysSetupRuntimeProxy cp, AbstractFetcher<SysSetupRuntimeProxy, SysSetupRuntime, SysSetupRuntimeProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new SysSetupRuntimeProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
